import request from '@/utils/request'
// 登录
export function loginAPI({ username: account, password, code, key }) {
  return request({
    url: '/manager/login',
    method: 'post',
    data: {
      account,
      password,
      code,
      key
    }
  })
}
// 验证码
export function getCodeAPI(key = '1234') {
  return request({
    url: '/manager/captcha',
    method: 'get',
    params: { key },
    responseType: 'arraybuffer'
  })
}
